﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ch4_
{
    class People
    {
        protected string name;
        public People(string name)
        {
            this.name = name;
        }
        //public People() { }
        public virtual void showSelf()
        {
            Console.WriteLine("name = {0}", name);
        }

        public static void showImportantInformation(People p)
        {
            p.showSelf();
            p.name = "小可爱";
        }

        public static int plus (ref int x ,ref int y)
        {
            int result = x + y;
            x = 100;
            y = 200;
            return result;
        }
    }
}
